<?php
$phproot = PHP_ROOTURL;
$staticroot = SWF_ROOTURL;
$vision = VISION;
$img = "{$staticroot}images1/";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta property="og:title" content="忍者大战海盗" />
        <meta property="og:type" content="book" />
        <meta property="og:url" content="<?php echo $phproot; ?>" />
        <meta property="og:site_name" content="忍者大战海盗" />
        <meta property="og:description" content="很好玩的游戏~~~" />
        <style type="text/css" media="screen">
            html,body{ font-size:12px;margin:0; padding: 0 }
			body{margin:0;background-color: #FFF;}
			.mb_wrap{margin:0 auto;width:760px;background-color:#FFF;}
			.mb_body{position:relative;clear:both;margin:0;}

			#table_menu{background-color: #2a6d00;}
            #table_menu img{cursor: pointer;}
           #divtips{width: 478px; height: 23px; overflow: hidden; position: relative; left: 242px; top: 56px; color: #FFF; text-align: center;}
            #tips{margin: 0px; padding: 0px; list-style-type: none;}
            #tips li{margin: 5px; font-size: 12px;}
            
            #body{
                position:relative;
                
            }
            #giftlink{display:block;position:relative;text-decoration:none;}
            #giftlink em{position:absolute;background:red;right:35px;top:-1px;border-radius:3px 3px 3px 3px;font-size:8px;color:#fff;font-weight:bold;font-family:arial;line-height:10px;display:block;box-shadow: 0 0 2px #333333;padding:3px;}
            #banner {position:relative; width:760px; height:100px; overflow:hidden; font-size:16px} 
            #banner_list img {border:0px;} 
            
            #banner_info{position:absolute; bottom:4px; left:5px;height:22px;color:#fff;z-index:1001;cursor:pointer} 
            #banner ul {position:absolute;list-style-type:none;filter: Alpha(Opacity=80);opacity:0.8; z-index:1002; 
            margin:0; padding:0; bottom:3px; right:5px; height:20px} 
            #banner ul li { padding:0 8px; line-height:18px;float:left;display:block;color:#FFF;border:#e5eaff 1px solid;background-color:#6f4f67;cursor:pointer; margin:0; font-size:16px;} 
            #banner_list a{position:absolute;} 
        </style>
        <script type="text/javascript" src="<?php echo $phproot; ?>js/swfobject.js"></script>
        <script type="text/javascript" src="<?php echo $phproot; ?>js/jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="http://static.connect.renren.com/js/v1.0/FeatureLoader.jsp"></script>
        <script type="text/javascript">
            XN_RequireFeatures(["EXNML"], function()
            {
                XN.Main.init("<?php echo SNS_API_KEY; ?>", "/xd_receiver.html");
            });
        </script>

        <script type="text/javascript">
            var swfVersionStr = "10.0.0";
            var xiSwfUrlStr = "<?php echo $staticroot; ?>playerProductInstall.swf";

            var flashvars = {};
            flashvars.server_path = "<?php echo $phproot; ?>";
            flashvars.static_path = "<?php echo $staticroot; ?>";
            flashvars.uid = "<?php echo $uid ?>";            

            flashvars.ui = '<?php echo $vision; ?>';
            flashvars.sound = '<?php echo $vision; ?>';
            flashvars.prop = '<?php echo $vision; ?>';
            flashvars.config = '<?php echo $vision; ?>';
            flashvars.window = '<?php echo $vision; ?>';
            flashvars.player = '<?php echo $vision; ?>';
            flashvars.error = '<?php echo $vision; ?>';
            flashvars.runtime = '<?php echo $vision; ?>';
            flashvars.font = '<?php echo $vision; ?>';
            flashvars.vision = '<?php echo $vision; ?>';
	    
            var params = {};
            params.quality = "high";
            params.transparent = "true";
            params.bgcolor = "#69BD29";
            params.allowscriptaccess = "always";
            params.allowfullscreen = "true";

            var attributes = {};
            attributes.id = "game";
            attributes.name = "game";
            attributes.align = "middle";

            swfobject.embedSWF("<?php echo $staticroot; ?>preLoader.swf?v=<?php echo $vision; ?>", "flashContent","760", "650", swfVersionStr, xiSwfUrlStr,flashvars, params, attributes);
            swfobject.createCSS("#flashContent", "display:block;text-align:left;");
        </script>
        <script type="text/javascript">
            var t = n = 0, count; 
            $(document).ready(function() {});

			function uinfo()
			{
				var u = new Array();
				<?php
					if($uinfo)
					{
						$u = json_encode($uinfo);
						echo "u = {$u};\n";
					}
				?>
				return u;
			}

			function snsfriends()
			{
				var f = new Array();
				<?php
					if($friends && !$friends['ecode'] && $friends['ret'])
					{
						$f = json_encode($friends['ret']);
						echo "f = {$f};\n";
					}
				?>
				return f;
			}
            
            //发送FEED
            function feed(name, caption, msg, desription, img)
			{
                var feedSettings = {
                    "template_bundle_id": 1,
                    "template_data":{
                        "images":[
                            {"src":img, "href":"<?php echo SNS_AUTH_CALLBACK_URL; ?>"}
                        ],
                        "feedtype":"<a href='<?php echo SNS_AUTH_CALLBACK_URL; ?>'>"+desription+"</a>",
                        "content":""
                    },
                    "body_general":"<a href='<?php echo SNS_AUTH_CALLBACK_URL; ?>'>"+caption+"</a>",
                    "callback": function(ok){console.log('here in feed callback!!');},
                    "user_message_prompt": name,
                    "user_message": msg
                };
                XN.Connect.showFeedDialog(feedSettings);
            }
            
            function invite()
			{
                $("#invitepage").css("display","block").html("<iframe id=\"friends\" src=\"<?php echo PHP_ROOTURL; ?>?c=index&a=invitefriend\" style=\"width: 100%; height: 100%;\" frameborder=\"0\" scrolling=\"no\"></iframe>");
				$("#body").css("display","none");
                                $("#freegift").css("display","none");
                                $("#pay-wraper").css("display","none");
                return;
            }
			
            function reloadpage(){ window.location.reload(); }
            
			function homepage(id) { window.open("http://www.renren.com/profile.do?id=" + id); }
			function pay() { self.location.href="<?php echo PHP_ROOTURL; ?>?c=pay&a=order"; }
			function isblack(uid, fuid) { document.game.isblack_callback(false)}
        </script>

    </head>
    <body>
	<div class="mb_wrap">
		<div class="mb_body">
            <div id="body">
                <div id="flashContent">
                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="760" height="650" id="game">
                        <param name="movie" value="<?php echo $staticroot; ?>preLoader.swf?v=<?php echo $vision; ?>" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#69BD29" />
                        <param name="allowScriptAccess" value="always" />
                        <param name="wmode" value="opaque" />
                        <param name="allowFullScreen" value="true" />
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="<?php echo $staticroot; ?>preLoader.swf?v=<?php echo $vision; ?>" width="760" height="650" wmode="opaque">
                            <param name="quality" value="high" />
                            <param name="bgcolor" value="#69BD29" />
                            <param name="allowScriptAccess" value="always" />
                            <param name="allowFullScreen" value="true" />
                            <!--<![endif]-->
                            <div style="text-align:center;">
                                <p>您的FLASH版本過低，點擊下面的按鈕安裝最新的FLASH插件</p>
                                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" /></a></p>
                            </div>
                            <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                    </object>
                </div>
                
            </div>
            <div id="invitepage" style="display:none;width: 760px; height: 670px;"></div>
            
			<div style="line-height:20px;padding:10px;text-align:center;">
				<div>声明：此应用由 常州品圣软件科技有限公司 提供，若您在游戏过程中遇到问题，可以直接联系客服QQ：<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2462429203&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2462429203:42" alt="公主与矮人客服" title="公主与矮人客服"></a></div>
				<div>或者发送邮件至客服邮箱，我们的客服人员会尽快为您解答。</div>
				<div>欢迎加入QQ交流群：69721270       如长时间没有操作造成游戏中断，请按F5刷新   您的ID：<?php echo $oid; ?></div>
			</div>
        </div>
	</div>
    </body>
</html>

